package com.xuecheng.orders.service;

import com.xuecheng.messagesdk.model.po.MqMessage;
import com.xuecheng.orders.model.dto.AddOrderDto;
import com.xuecheng.orders.model.dto.PayRecordDto;
import com.xuecheng.orders.model.dto.PayStatusDto;
import com.xuecheng.orders.model.po.XcOrders;
import com.xuecheng.orders.model.po.XcPayRecord;

public interface OrderService {
    PayRecordDto createOrder(String userId, AddOrderDto addOrderDto);

    String requestPay(String payNo);
    XcPayRecord getPayRecodeByPayNo(String payNo);
    PayRecordDto getPayResult(String userId,String payNo);
    void savePayResult(String userId,PayStatusDto result);
    void notifyResult(MqMessage mqMessage);
}
